package com.itstyle.seckill.topic.desinger.design_xw.chain;

/**
 * @Auther: liuwenxiang
 * @Date: 2019/9/18 21:12
 * @Description:
 */
public class ConcreteHandler2 extends Handler {
    @Override
    public void handleRequest(String request) {
        if(("two").equals(request)){
            System.out.println("具体处理者2负责处理该请求！");
        }else{
            if(getNext()!=null){
                getNext().handleRequest(request);
            }else{
                System.out.println("没有人处理该请求！");
            }
        }
    }
}
